import { legacy_createStore, combineReducers, compose, applyMiddleware } from "redux"
import reduxThunk from "redux-thunk"
import numStaets from "./NumStaets/reducer"
import arrStatus from "./ArrStatus/reducer"
import XxxxStatus from "./XxxStatus/reducer"


const reducers = combineReducers({
    numStaets, arrStatus, XxxxStatus
})

// const store = legacy_createStore(reducers, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXETENSION__());

let composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) : compose //rt

const store = legacy_createStore(reducers, composeEnhancers(applyMiddleware(reduxThunk)));
export default store